﻿#if UNITY_EDITOR
using System;
using UnityEngine;
/// <summary>
/// 枚举默认值属性
/// </summary>
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
public class ESF_GUIEnumDefaultValueAttribute : PropertyAttribute
{
    /// <summary>
    /// 枚举默认值属性
    /// </summary>
    /// <param name="_defaultValue">默认值</param>
    public ESF_GUIEnumDefaultValueAttribute(int _defaultValue)
    {
        defaultValue = _defaultValue;
    }

    /// <summary>
    /// 默认值
    /// </summary>
    public int defaultValue { get; private set; }
}
#endif
